﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class mobile_charts_gender : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Roles.IsUserInRole("Role_Uni_Admin")) {
            int uni_id = ACSService.getAdminUni(Membership.GetUser().ProviderUserKey.ToString());
            UniID.Value = uni_id.ToString();
        }else if (Roles.IsUserInRole("Role_Super_Admin")) {
            GenderSqlDataSource.SelectCommand = "select count(*),gender from members group by gender";
            GenderSqlDataSource.DataBind();
        }
    }
}